import axios from '@/libs/api.request'

export const getstreelist = (data) => {
  return axios.request({
    url: '/api/ac/dyc/streeAllServiceImpl/tableList',
    data: data,
    type: 'post'
  })
}
export const nowelcome = (data) => {
  return axios.request({
    url: '/api/as/dyc/streetable/nowelcome',
    data: data,
    type: 'post'
  })
}
// 时间转换为日期-> 2019-02-02
export function date2str (date, containtime) {
  if (!date || typeof date === 'string') {
    return date
  }
  var time1 = date.getFullYear()
  var month = date.getMonth() + 1
  var day = date.getDate()
  time1 += '-' + (month < 10 ? '0' + month : month)
  time1 += '-' + (day < 10 ? '0' + day : day)
  return time1
}
// 时间转换为月份-> 2019-02
export function date3str (date, containtime) {
  if (!date || typeof date === 'string') {
    return date
  }
  var time1 = date.getFullYear()
  var month = date.getMonth() + 1
  // var day = date.getDate()
  time1 += '-' + (month < 10 ? '0' + month : month)
  return time1
}
// 请求调用民政接口
export const getAssistanceInfo = (param) => {
  return axios.request({
    url: '/api/ac/dyc/abutmentService/getAssistanceInfo',
    method: 'post',
    data: param
  })
}
// 请求调用民政接口
export const createPostNew = (param) => {
  return axios.request({
    url: '/api/ac/csc/createPostService/createPostNew',
    method: 'post',
    data: param
  })
}
// 残疾人补贴系统订单详情接口
export const eventInfo = (param) => {
  return axios.request({
    url: '/api/ac/dyc/streeAllServiceImpl/eventInfo',
    method: 'post',
    data: param
  })
}
// 发布列表
export const releaseNoticeList = (param) => {
  return axios.request({
    url: '/api/as/dyc/mzstreetaction/releaseNoticeList',
    method: 'post',
    data: param
  })
}
// 通知列表
export const noticeList = (param) => {
  return axios.request({
    url: '/api/as/dyc/mzstreetaction/noticeList',
    method: 'post',
    data: param
  })
}

// 保存通告
export const saveNotice = (param) => {
  return axios.request({
    url: '/api/ac/dyc/streeAllServiceImpl/saveNotice',
    method: 'post',
    data: param
  })
}
// 删除通告
export const deleteNotice = (param) => {
  return axios.request({
    url: '/api/as/dyc/mzstreetaction/deleteNotice',
    method: 'post',
    data: param
  })
}
// 通知公告发布和撤销
export const setReleaseState = (param) => {
  return axios.request({
    url: '/api/as/dyc/mzstreetaction/setReleaseState',
    method: 'post',
    data: param
  })
}

// 不同等级查询不同地域
export const getMailLevelList = (param) => {
  return axios.request({
    url: '/api/as/dyc/mzstreetaction/getMailLevelList',
    method: 'post',
    data: param
  })
}

// 接件统计表
export const getSevenCountList = (param) => {
  return axios.request({
    url: '/api/ac/dyc/streeAllServiceImpl/getSevenCountList',
    method: 'post',
    data: param
  })
}
// 区域查找
export const getCompanyCountList = (param) => {
  return axios.request({
    url: '/api/as/dyc/mzstreetaction/getCompanyCountList',
    method: 'post',
    data: param
  })
}

// 残疾人补贴系统个人信息详情接口
export const getuserinfobycardno = (param) => {
  return axios.request({
    url: '/api/as/csc/user/getuserinfobycardno',
    method: 'post',
    data: param
  })
}
// 查询是否是残疾人详情接口
export const findCanlian = (param) => {
  return axios.request({
    url: '/api/ac/dyc/streeAllServiceImpl/findCanlian',
    method: 'post',
    data: param

  })
}
// 街道直接通过接口
export const streetAgree = (param) => {
  return axios.request({
    url: '/api/ac/dyc/streeAllServiceImpl/updateStreetAgree',
    method: 'post',
    data: param
  })
}
// 街道直接驳回接口
export const stateRefuse = (param) => {
  return axios.request({
    url: '/api/ac/dyc/streeAllServiceImpl/updateStateRefuse',
    method: 'post',
    data: param
  })
}
// 民政局通过后街道通过接口
export const updateMzStreetAgree = (param) => {
  return axios.request({
    url: '/api/ac/dyc/streeAllServiceImpl/updateStreetAgree',
    method: 'post',
    data: param
  })
}
// 民政局通过接口
export const mzAgree = (param) => {
  return axios.request({
    url: '/api/ac/dyc/streeAllServiceImpl/updateMzAgree',
    method: 'post',
    data: param
  })
}
// 民政局驳回接口
export const mzRefuse = (param) => {
  return axios.request({
    url: '/api/ac/dyc/streeAllServiceImpl/updateMzRefuse',
    method: 'post',
    data: param
  })
}
// 残联驳回后街道驳回接口
export const mzStreetRefuse = (param) => {
  return axios.request({
    url: '/api/ac/dyc/streeAllServiceImpl/updateCanLianStreeNoPash',
    method: 'post',
    data: param
  })
}
// 民政局列表全部接口
export const mztableList = (param) => {
  return axios.request({
    url: '/api/ac/dyc/streeAllServiceImpl/mzTableList',
    method: 'post',
    data: param
  })
}
// 查询补贴发放名单
export const findDisabilityMoneyList = (param) => {
  return axios.request({
    url: '/api/as/dyc/streetable/findDisabilityMoneyList',
    method: 'post',
    data: param
  })
}
// 查看户籍情况
export const getRegisterInfo = (param) => {
  return axios.request({
    url: '/api/ac/dyc/abutmentService/getRegisterInfo',
    method: 'post',
    data: param
  })
}
// 查看殡葬情况
export const getFuneralInfo = (param) => {
  return axios.request({
    url: '/api/ac/dyc/abutmentService/getFuneralInfo',
    method: 'post',
    data: param
  })
}
// 查询所有发放人员
export const findAllGrantUserList = (param) => {
  return axios.request({
    url: '/api/as/dyc/issuancestatistics/findAllGrantUserList',
    method: 'post',
    data: param
  })
}
// 将状态更改为停发
export const updateStateByIdToStop = (param) => {
  return axios.request({
    url: '/api/ac/dyc/issuanceServiceImpl/updateStateByIdToStop',
    method: 'post',
    data: param
  })
}
// 续领功能
export const RenewalCollar = (param) => {
  return axios.request({
    url: '/api/ac/dyc/issuanceServiceImpl/RenewalCollar',
    method: 'post',
    data: param
  })
}
// 追缴功能
export const PaymentAfterwards = (param) => {
  return axios.request({
    url: '/api/ac/dyc/issuanceServiceImpl/PaymentAfterwards',
    method: 'post',
    data: param
  })
}
// 根据街道补贴类型查询个人的低保等详细信息(核查)
export const findAllInfo = (param) => {
  return axios.request({
    url: '/api/ac/dyc/issuanceServiceImpl/findAllInfo',
    method: 'post',
    data: param
  })
}
// 查询区县街道数据
export const findAllCityList = (param) => {
  return axios.request({
    url: '/api/as/dyc/issuancestatistics/findAllCityList',
    method: 'post',
    data: param
  })
}
// 数据查询列表查看详情
export const getUserInfo = (param) => {
  return axios.request({
    url: '/api/ac/dyc/issuanceServiceImpl/getUserInfo',
    method: 'post',
    data: param
  })
}
// 开启核查定时任务接口
export const createCheck = (param) => {
  return axios.request({
    url: '/api/ac/dyc/issuanceServiceImpl/createCheck',
    method: 'post',
    data: param
  })
}
// 已核查数据数量
export const findNumUserd = (param) => {
  return axios.request({
    url: '/api/ac/dyc/issuanceServiceImpl/findNumUserd',
    method: 'post',
    data: param
  })
}
// 要核查数据数量
export const getGrantNum = (param) => {
  return axios.request({
    url: '/api/ac/dyc/issuanceServiceImpl/getGrantNum',
    method: 'post',
    data: param
  })
}
// 要核查数据数量
export const findCompountList = (param) => {
  return axios.request({
    url: '/api/ac/dyc/issuanceServiceImpl/findCompountList',
    method: 'post',
    data: param
  })
}
// 要核查数据数量
export const findCompountMonthList = (param) => {
  return axios.request({
    url: '/api/ac/dyc/issuanceServiceImpl/findCompountMonthList',
    method: 'post',
    data: param
  })
}
// 查询是否为孤儿
export const getOrphanByCard = (param) => {
  return axios.request({
    url: '/api/ac/dyc/abutmentService/getOrphanByCard',
    method: 'post',
    data: param
  })
}
// 查询是否为特困人员
export const getDifficultyByCard = (param) => {
  return axios.request({
    url: '/api/ac/dyc/abutmentService/getDifficultyByCard',
    method: 'post',
    data: param
  })
}
// 查询工伤管理费详情接口
export const getOccupationalInfo = (param) => {
  return axios.request({
    url: '/api/ac/dyc/disabliityCheckService/getOccupationalInfo',
    method: 'post',
    data: param
  })
}
// 查询社区列表
export const getSubordinate = (param) => {
  return axios.request({
    url: '/api/uc/dyc/createDisOrderService/getSubordinate',
    method: 'post',
    data: param
  })
}
// 查询社区列表
export const getMunicipalCompountList = (param) => {
  return axios.request({
    url: '/api/as/dyc/issuancestatistics/getMunicipalList',
    method: 'post',
    data: param
  })
}
// 市级账号查询各区核查情况
export const findCheckList = (param) => {
  return axios.request({
    url: '/api/ac/dyc/checkReviewCompoundService/checkList',
    method: 'post',
    data: param
  })
}
// 街道账号查询疑点数据
export const findAllStopUserRecordList = (param) => {
  return axios.request({
    url: '/api/ac/dyc/issuanceServiceImpl/findAllStopUserRecordList',
    method: 'post',
    data: param
  })
}
// 街道账号创建停发记录
export const createStopUserRecord = (data) => {
  return axios.request({
    url: '/api/ac/dyc/issuanceServiceImpl/createStopUserRecord',
    method: 'post',
    data: data
  })
}
// 街道驳回,
export const updateStreetStopReject = (data) => {
  return axios.request({
    url: '/api/ac/dyc/issuanceServiceImpl/updateStreetStopReject',
    method: 'post',
    data: data
  })
}
// 街道通过
export const updateStreetStopPass = (data) => {
  return axios.request({
    url: '/api/ac/dyc/issuanceServiceImpl/updateStreetStopPass',
    method: 'post',
    data: data
  })
}
// 残联驳回
export const updateDPFStopReject = (data) => {
  return axios.request({
    url: '/api/ac/dyc/issuanceServiceImpl/updateDPFStopReject',
    method: 'post',
    data: data
  })
}
// 残联通过
export const updateDPFStopPass = (data) => {
  return axios.request({
    url: '/api/ac/dyc/issuanceServiceImpl/updateDPFStopPass',
    method: 'post',
    data: data
  })
}
// 民政驳回
export const updateCABStopReject = (data) => {
  return axios.request({
    url: '/api/ac/dyc/issuanceServiceImpl/updateCABStopReject',
    method: 'post',
    data: data
  })
}
// 街道账号创建停发记录
export const updateCABStopPass = (data) => {
  return axios.request({
    url: '/api/ac/dyc/issuanceServiceImpl/updateCABStopPass',
    method: 'post',
    data: data
  })
}
// 街道要件转移
export const updateOrderInfo = (data) => {
  return axios.request({
    url: '/api/ac/dyc/issuanceServiceImpl/updateOrderInfo',
    method: 'post',
    data: data
  })
}
// 街道户籍转移
export const updatePersonnelTransfer = (data) => {
  return axios.request({
    url: '/api/ac/dyc/issuanceServiceImpl/updatePersonnelTransfer',
    method: 'post',
    data: data
  })
}


